
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>2.3 HDFS HA 部署 · 大数据 HA 课堂笔记</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content=" 李振超">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-page-toc-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-prism/prism-base16-ateliersulphurpool.light.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-change_girls/girls.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
        <link rel="stylesheet" href="../styles/website.css">
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="24-ha-hdfs-ji-qun-guan-li-ming-ling.html" />
    
    
    <link rel="prev" href="22-jia-gou.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="http://www.atguigu.com/" target="_blank" class="custom-link">联系我们</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    第 1 章 HA概述
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../chapter1.html">
            
                <a href="../chapter1.html">
            
                    
                    第 2 章 HDFS HA
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="21-bei-jing.html">
            
                <a href="21-bei-jing.html">
            
                    
                    2.1 背景
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="22-jia-gou.html">
            
                <a href="22-jia-gou.html">
            
                    
                    2.2 架构
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.2.3" data-path="23-bu-shu.html">
            
                <a href="23-bu-shu.html">
            
                    
                    2.3 HDFS HA 部署
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="24-ha-hdfs-ji-qun-guan-li-ming-ling.html">
            
                <a href="24-ha-hdfs-ji-qun-guan-li-ming-ling.html">
            
                    
                    2.4 HA HDFS 集群管理命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="24-zi-dong-bei-707e28-automatic-failover.html">
            
                <a href="24-zi-dong-bei-707e28-automatic-failover.html">
            
                    
                    2.5 自动备灾(Automatic Failover)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="26-wen-da.html">
            
                <a href="26-wen-da.html">
            
                    
                    2.6 自动备灾常见问题
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../di-3-zhang-yarn-resourcemange-ha.html">
            
                <a href="../di-3-zhang-yarn-resourcemange-ha.html">
            
                    
                    第 3 章 Yarn ResourceMange HA
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >2.3 HDFS HA 部署</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="23-hdfs-ha-&#x90E8;&#x7F72;">2.3 HDFS HA &#x90E8;&#x7F72;</h1>
<h2 id="231-&#x786C;&#x4EF6;&#x8D44;&#x6E90;">2.3.1 &#x786C;&#x4EF6;&#x8D44;&#x6E90;</h2>
<p>&#x90E8;&#x7F72; HA &#x96C6;&#x7FA4;, &#x8981;&#x51C6;&#x5907;&#x4E0B;&#x9762;&#x7684;&#x786C;&#x4EF6;&#x8D44;&#x6E90;.</p>
<ol>
<li><p>NameNode machines</p>
<p> 2 &#x53F0; NameNode machines, &#x4E00;&#x4E2A;&#x7528;&#x4E8E;&#x8FD0;&#x884C; Active NameNode, &#x53E6;&#x5916;&#x4E00;&#x4E2A;&#x7528;&#x4E8E;&#x8FD0;&#x884C; Standby NameNode. &#x8FD9;&#x4E2A; 2 &#x53F0;&#x8BBE;&#x5907;&#x7684;&#x786C;&#x4EF6;&#x8D44;&#x6E90;&#x5E94;&#x8BE5;&#x76F8;&#x7B49;.</p>
</li>
<li><p>JournalNodes machines</p>
<p>&#x7528;&#x6765;&#x8FD0;&#x884C; JournalNodes.</p>
<p>JournalNode &#x8FDB;&#x7A0B;&#x76F8;&#x5BF9;&#x6765;&#x8BF4;&#x6BD4;&#x8F83;&#x8F7B;&#x91CF;&#x7EA7;, &#x6240;&#x4EE5;&#x8FD9;&#x4E9B;&#x8FDB;&#x7A0B;&#x53EF;&#x4EE5;&#x5206;&#x914D;&#x5728;&#x5176;&#x4ED6;&#x7684; Hadoop &#x8BBE;&#x5907;&#x4E0A;, &#x6BD4;&#x5982;&#x8FD0;&#x884C; NameNode, DataNode&#x6216;&#x8005; Yarn ResourceManage&#x7684;&#x7684;&#x8BBE;&#x5907;&#x4E0A;.</p>
<blockquote>
<h4 id="&#x6CE8;&#x610F;"><em>&#x6CE8;&#x610F;:</em></h4>
</blockquote>
<p> &#x81F3;&#x5C11;&#x9700;&#x8981; 3 &#x4E2A; JournalNode, &#x56E0;&#x4E3A; edit log &#x7684;&#x4FEE;&#x6539;&#x5FC5;&#x987B;&#x5199;&#x5230;&#x591A;&#x4E2A; JournalNode &#x4E0A;. &#x8FD9;&#x6837;&#x5373;&#x4F7F;&#x6709;&#x4E00;&#x4E2A; JournalNode &#x6302;&#x4E86;, &#x5176;&#x4ED6;&#x7684; 2 &#x4E2A;&#x4E5F;&#x53EF;&#x4EE5;&#x5DE5;&#x4F5C;.</p>
<p> &#x4E3A;&#x4E86;&#x63D0;&#x4F9B;&#x66F4;&#x591A;&#x7684;&#x5197;&#x4F59;, &#x4E5F;&#x53EF;&#x4EE5;&#x589E;&#x52A0; JournalNode &#x7684;&#x6570;&#x91CF;, &#x4F46;&#x662F;&#x6700;&#x597D;&#x662F;&#x5947;&#x6570;(3, 5, 7, ...). &#x56E0;&#x4E3A;&#x53EA;&#x8981;&#x4E0D;&#x8D85;&#x8FC7;&#x4E00;&#x534A;&#x7684; JournalNode &#x6302;&#x6389;, &#x5176;&#x4ED6;&#x7684;&#x4ECD;&#x7136;&#x53EF;&#x4EE5;&#x6B63;&#x5E38;&#x5DE5;&#x4F5C;. &#x8FD9;&#x4E2A;&#x7279;&#x6027;&#x4F18;&#x70B9;&#x7C7B;&#x4F3C;&#x4E8E;&#x524D;&#x9762;&#x5B66;&#x4E60;&#x7684; Zookeeper.</p>
</li>
</ol>
<hr>
<p>&#x8FD8;&#x6709;&#x4E00;&#x70B9;&#x9700;&#x8981;&#x6CE8;&#x610F;:</p>
<p>&#x5728;&#x4E00;&#x4E2A; HA &#x96C6;&#x7FA4;&#x4E2D;, Standby NameNode &#x4E5F;&#x4F1A;&#x6267;&#x884C;&#x547D;&#x540D;&#x7A7A;&#x95F4;&#x7684;&#x68C0;&#x67E5;&#x70B9;&#x7684;, &#x6240;&#x4EE5;&#x6CA1;&#x6709;&#x5FC5;&#x987B;&#x518D;&#x53BB;&#x8FD0;&#x884C;&#x4E00;&#x4E2A; SecondaryNameNode.</p>
<p>&#x4E8B;&#x5B9E;&#x4E0A;, &#x5982;&#x679C;&#x518D;&#x8FD0;&#x884C; SecondaryNameNode &#x53CD;&#x800C;&#x4F1A;&#x51FA;&#x9519;.</p>
<hr>
<h2 id="232-&#x914D;&#x7F6E;">2.3.2 &#x914D;&#x7F6E;</h2>
<h3 id="&#x914D;&#x7F6E;&#x7EFC;&#x8FF0;">&#x914D;&#x7F6E;&#x7EFC;&#x8FF0;</h3>
<p>&#x5728; HA &#x96C6;&#x7FA4;&#x4E2D;, &#x6240;&#x6709;&#x7684;&#x8282;&#x70B9;&#x53EF;&#x4EE5;&#x62E5;&#x6709;&#x76F8;&#x540C;&#x7684;&#x914D;&#x7F6E;, &#x4E0D;&#x9700;&#x8981;&#x6839;&#x636E;&#x8282;&#x70B9;&#x7684;&#x7C7B;&#x578B;&#x4E0D;&#x540C;&#x800C;&#x6DFB;&#x52A0;&#x4E0D;&#x540C;&#x7684;&#x914D;&#x7F6E;.  &#x8FD9;&#x7ED9;&#x914D;&#x7F6E;&#x5E26;&#x6765;&#x4E86;&#x5F88;&#x5927;&#x7684;&#x4FBF;&#x5229;.</p>
<p>HA &#x96C6;&#x7FA4;&#x4F7F;&#x7528; <code>nameservice ID</code> &#x6807;&#x8BC6;&#x4E00;&#x4E2A; HDFS &#x5B9E;&#x4F8B;, &#x800C;&#x5B9E;&#x9645;&#x4E0A;, &#x4ED6;&#x6709;&#x53EF;&#x80FD;&#x5305;&#x542B;&#x591A;&#x4E2A; NameNode.</p>
<p>&#x53E6;&#x5916;, &#x5728; HA &#x96C6;&#x7FA4;&#x4E2D;, &#x6DFB;&#x52A0;&#x4E86;&#x4E00;&#x4E2A;&#x65B0;&#x7684;&#x62BD;&#x8C61;&#x5C5E;&#x6027;&#x53EB;&#x505A; <code>NameNode ID</code>.</p>
<p>&#x5728;&#x96C6;&#x7FA4;&#x4E2D;&#x7684;&#x6BCF;&#x4E2A;&#x4E0D;&#x540C;&#x7684; NameNode &#x6709;&#x4E00;&#x4E2A;&#x4E0D;&#x540C; <code>NameNode ID</code> &#x6765;&#x628A;&#x4ED6;&#x4EEC;&#x533A;&#x522B;&#x5F00;&#x6765;.</p>
<p>&#x4E3A;&#x4E86;&#x8BA9;&#x6240;&#x6709;&#x7684;&#x8BBE;&#x5907;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#x76F8;&#x540C;&#x7684;&#x914D;&#x7F6E;&#x6587;&#x4EF6;, &#x76F8;&#x5173;&#x914D;&#x7F6E;&#x53C2;&#x6570;&#x90FD;&#x4F1A;&#x4F7F;&#x7528; <code>nameserveice ID</code> &#x548C; <code>NameNode ID</code> &#x4F5C;&#x4E3A;&#x540E;&#x7F00;. </p>
<p><img src="http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/1539848494.png" alt=""></p>
<hr>
<h3 id="&#x914D;&#x7F6E;&#x7EC6;&#x8282;">&#x914D;&#x7F6E;&#x7EC6;&#x8282;</h3>
<p>&#x7531;&#x4E8E;&#x9AD8;&#x53EF;&#x7528;&#x540E;&#x671F;&#x5B66;&#x4E60;&#x671F;&#x95F4;&#x4F7F;&#x7528;&#x8F83;&#x5C11;, &#x6240;&#x4EE5;&#x6211;&#x4EEC;&#x628A;&#x4EE5;&#x524D;&#x7684; Hadoop &#x91CD;&#x65B0;&#x590D;&#x5236;&#x4E00;&#x4EFD;&#x5E76;&#x547D;&#x540D; <code>HA</code>, &#x7136;&#x540E;&#x914D;&#x7F6E; <code>HA</code> &#x8FD9;&#x4E2A; Hadoop, &#x914D;&#x7F6E;&#x6210;&#x529F;&#x4E4B;&#x540E;&#x628A;&#x4ED6;&#x4EEC;&#x5206;&#x53D1;&#x5230;&#x5176;&#x4ED6;&#x8BBE;&#x5907;&#x4E0A;.</p>
<p><img src="http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/1539844353.png" alt=""></p>
<blockquote>
<h5 id="&#x6CE8;&#x610F;"><em>&#x6CE8;&#x610F;:</em></h5>
</blockquote>
<ul>
<li>&#x8FD9;&#x4E9B;&#x914D;&#x7F6E;&#x7684;&#x987A;&#x5E8F;&#x5E76;&#x4E0D;&#x91CD;&#x8981;.</li>
</ul>
<h4 id="&#x914D;&#x7F6E;-hdfs-sitexml">&#x914D;&#x7F6E; <code>hdfs-site.xml</code></h4>
<ol>
<li><p><code>dfs.nameservices</code>  --- &#x65B0;&#x7684;&#x540D;&#x79F0;&#x670D;&#x52A1;&#x5668;&#x7684;&#x903B;&#x8F91;&#x540D;</p>
<p>&#x4E3A;&#x8FD9;&#x4E2A;&#x540D;&#x79F0;&#x670D;&#x52A1;&#x9009;&#x62E9;&#x4E00;&#x4E2A;&#x903B;&#x8F91;&#x540D;, &#x4F8B;&#x5982;: mycluster. &#x5E76;&#x4E14;&#x8FD9;&#x4E2A;&#x503C;&#x4E5F;&#x4F1A;&#x7528;&#x5728;&#x5176;&#x4ED6;&#x7684;&#x914D;&#x7F6E;&#x9009;&#x9879;&#x4E2D;.</p>
<p>&#x8FD9;&#x4E2A;&#x503C;&#x662F;&#x4EFB;&#x610F;&#x7684;, &#x4F46;&#x662F;&#x4ED6;&#x4F1A;&#x7528;&#x5728;&#x5176;&#x4ED6;&#x914D;&#x7F6E;&#x548C; HDFS &#x7684;&#x7EDD;&#x5BF9;&#x8DEF;&#x5F84;&#x4E2D;.</p>
<pre class="language-"><code class="lang-xml"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>property</span><span class="token punctuation">&gt;</span></span>
 <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>name</span><span class="token punctuation">&gt;</span></span>dfs.nameservices<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>name</span><span class="token punctuation">&gt;</span></span>
 <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>value</span><span class="token punctuation">&gt;</span></span>mycluster<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>value</span><span class="token punctuation">&gt;</span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>property</span><span class="token punctuation">&gt;</span></span>
</code></pre>
<hr>
</li>
<li><p><code>dfs.ha.namenodes.[nameservice ID]</code> -- &#x7ED9;&#x6BCF;&#x4E2A; NameNode &#x914D;&#x7F6E;&#x4E00;&#x4E2A; <code>ID</code></p>
<p>&#x914D;&#x7F6E;&#x8FD9;&#x4E2A;&#x5C5E;&#x6027;&#x9700;&#x8981;&#x4F7F;&#x7528;&#x5230; <code>nameservce ID</code> &#x7684;&#x503C;.</p>
<p>&#x8FD9;&#x4E2A;&#x5C5E;&#x6027;&#x7684;&#x503C;&#x662F;&#x4F7F;&#x7528;&#x9017;&#x53F7;&#x9694;&#x5F00;&#x7684;&#x591A;&#x4E2A; <code>NameNode ID</code>.</p>
<p>&#x5982;&#x679C;&#x4F60;&#x7684; <code>dfs.nameservices</code> &#x7684;&#x503C;&#x662F; <code>mycluster</code>, &#x60F3;&#x8BBE;&#x7F6E;&#x7684; <code>NameNode ID</code> &#x7684;&#x503C;&#x5206;&#x522B;&#x662F; <code>nn1, nn2</code>, &#x5219;&#x5E94;&#x8BE5;&#x4F7F;&#x7528;&#x4E0B;&#x9762;&#x7684;&#x8BBE;&#x7F6E;:</p>
<pre class="language-"><code class="lang-xml"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>property</span><span class="token punctuation">&gt;</span></span>
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>name</span><span class="token punctuation">&gt;</span></span>dfs.ha.namenodes.mycluster<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>name</span><span class="token punctuation">&gt;</span></span>
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>value</span><span class="token punctuation">&gt;</span></span>nn1,nn2<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>value</span><span class="token punctuation">&gt;</span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>property</span><span class="token punctuation">&gt;</span></span>
</code></pre>
<blockquote>
<h4 id="&#x6CE8;&#x610F;"><em>&#x6CE8;&#x610F;:</em></h4>
</blockquote>
<ul>
<li>&#x76EE;&#x524D;&#x6BCF;&#x4E2A;&#x96C6;&#x7FA4;&#x6700;&#x591A;&#x53EF;&#x4EE5;&#x8BBE;&#x7F6E; 2 &#x4E2A; NameNode</li>
</ul>
<hr>
</li>
<li><p><code>dfs.namenode.rpc-address.[nameservice ID].[name node ID]</code> --- &#x6BCF;&#x4E2A; NameNode &#x53BB;&#x76D1;&#x542C;&#x7684;&#x5B8C;&#x6574;&#x7684; RPC &#x5730;&#x5740;.</p>
<p>&#x6BCF;&#x4E2A; NameNode&#x9700;&#x8981;&#x5355;&#x72EC;&#x53BB;&#x914D;&#x7F6E;.</p>
<pre class="language-"><code class="lang-xml"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>property</span><span class="token punctuation">&gt;</span></span>
 <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>name</span><span class="token punctuation">&gt;</span></span>dfs.namenode.rpc-address.mycluster.nn1<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>name</span><span class="token punctuation">&gt;</span></span>
 <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>value</span><span class="token punctuation">&gt;</span></span>hadoop201:8020<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>value</span><span class="token punctuation">&gt;</span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>property</span><span class="token punctuation">&gt;</span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>property</span><span class="token punctuation">&gt;</span></span>
 <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>name</span><span class="token punctuation">&gt;</span></span>dfs.namenode.rpc-address.mycluster.nn2<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>name</span><span class="token punctuation">&gt;</span></span>
 <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>value</span><span class="token punctuation">&gt;</span></span>hadoop203:8020<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>value</span><span class="token punctuation">&gt;</span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>property</span><span class="token punctuation">&gt;</span></span>
</code></pre>
<hr>
</li>
<li><p><code>dfs.namenode.http-address.[nameservice ID].[name node ID]</code> --- &#x6BCF;&#x4E2A; NameNode &#x53BB;&#x76D1;&#x542C;&#x7684; HTTP &#x5730;&#x5740;. 
&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x8FD9;&#x4E2A;&#x5730;&#x5740;&#x5728;&#x6D4F;&#x89C8;&#x5668;&#x4E2D;&#x67E5;&#x770B; NameNode.</p>
<pre class="language-"><code class="lang-xml"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>property</span><span class="token punctuation">&gt;</span></span>
   <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>name</span><span class="token punctuation">&gt;</span></span>dfs.namenode.http-address.mycluster.nn1<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>name</span><span class="token punctuation">&gt;</span></span>
   <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>value</span><span class="token punctuation">&gt;</span></span>hadoop201:50070<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>value</span><span class="token punctuation">&gt;</span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>property</span><span class="token punctuation">&gt;</span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>property</span><span class="token punctuation">&gt;</span></span>
   <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>name</span><span class="token punctuation">&gt;</span></span>dfs.namenode.http-address.mycluster.nn2<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>name</span><span class="token punctuation">&gt;</span></span>
   <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>value</span><span class="token punctuation">&gt;</span></span>hadoop203:50070<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>value</span><span class="token punctuation">&gt;</span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>property</span><span class="token punctuation">&gt;</span></span>
</code></pre>
<hr>
</li>
<li><p><code>dfs.namenode.shared.edits.dir</code>  --- &#x4E00;&#x4E2A;URI, &#x7528;&#x6765;&#x6807;&#x8BC6; JNs &#x7EC4;</p>
<p>&#x5B83;&#x7684;&#x503C;&#x662F;&#x6709;&#x591A;&#x4E2A; JNs &#x7684;&#x5730;&#x5740;&#x6765;&#x7EC4;&#x6210;. &#x6BCF;&#x4E2A;&#x4E4B;&#x95F4;&#x7528; <code>;</code> &#x9694;&#x5F00;.</p>
<pre class="language-"><code class="lang-xml"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>property</span><span class="token punctuation">&gt;</span></span>
     <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>name</span><span class="token punctuation">&gt;</span></span>dfs.namenode.shared.edits.dir<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>name</span><span class="token punctuation">&gt;</span></span>
     <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>value</span><span class="token punctuation">&gt;</span></span>qjournal://hadoop201:8485;hadoop202:8485;hadoop203:8485/mycluster<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>value</span><span class="token punctuation">&gt;</span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>property</span><span class="token punctuation">&gt;</span></span>
</code></pre>
<hr>
</li>
<li><p><code>dfs.client.failover.proxy.provider.[nameservice ID]</code>--- &#x4E00;&#x4E2A; java &#x7C7B;, HDFS &#x5BA2;&#x6237;&#x7AEF;&#x4F7F;&#x7528;&#x8FD9;&#x4E2A;&#x7C7B;&#x4E0E; Active NameNode &#x4FDD;&#x6301;&#x8054;&#x7CFB;.</p>
<p>&#x914D;&#x7F6E;&#x4E00;&#x4E2A;&#x7C7B;&#x540D;&#x5C31;&#x53EF;&#x4EE5;&#x4E86;. HDFS &#x5BA2;&#x6237;&#x4F7F;&#x7528;&#x8FD9;&#x4E2A;&#x7C7B;&#x6765;&#x68C0;&#x6D4B;&#x54EA;&#x4E2A; NameNode &#x662F;&#x6D3B;&#x52A8;&#x7684;&#x548C;&#x54EA;&#x4E2A; NameNode &#x6B63;&#x5728;&#x5904;&#x7406;&#x5BA2;&#x6237;&#x7AEF;&#x7684;&#x8BF7;&#x6C42;. 
&#x76EE;&#x524D;&#x53EA;&#x6709;&#x4E00;&#x4E2A;&#x5B9E;&#x73B0;: <code>ConfiguredFailoverProxyProvider</code></p>
<pre class="language-"><code class="lang-xml"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>property</span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>name</span><span class="token punctuation">&gt;</span></span>dfs.client.failover.proxy.provider.mycluster<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>name</span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>value</span><span class="token punctuation">&gt;</span></span>org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>value</span><span class="token punctuation">&gt;</span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>property</span><span class="token punctuation">&gt;</span></span>
</code></pre>
<hr>
</li>
<li><p><code>dfs.ha.fencing.methods</code> --- &#x4E00;&#x4E2A;&#x811A;&#x672C;&#x6216;&#x8005; java &#x7C7B;&#x7684;&#x5217;&#x8868;, &#x7528;&#x6765;&#x5728;&#x5907;&#x707E;&#x671F;&#x95F4;&#x9632;&#x62A4;&#x6D3B;&#x52A8; NameNode.</p>
<p>&#x8FD9;&#x4E2A;&#x7528;&#x6765;&#x4FDD;&#x8BC1;&#x540C;&#x4E00;&#x65F6;&#x523B;&#x53EA;&#x80FD;&#x6709;&#x4E00;&#x4E2A; Active NameNode.</p>
<p>&#x6709;&#x4E24;&#x79CD;&#x914D;&#x7F6E;&#x65B9;&#x6CD5;: <code>shell</code> &#x548C; <code>sshfence</code> . &#x4E8C;&#x8005;&#x9009;&#x5176;&#x4E00;.</p>
<ul>
<li><p><code>shell</code></p>
<pre class="language-"><code class="lang-xml"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>property</span><span class="token punctuation">&gt;</span></span>
   <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>name</span><span class="token punctuation">&gt;</span></span>dfs.ha.fencing.methods<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>name</span><span class="token punctuation">&gt;</span></span>
   <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>value</span><span class="token punctuation">&gt;</span></span>shell(/bin/true)<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>value</span><span class="token punctuation">&gt;</span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>property</span><span class="token punctuation">&gt;</span></span>
</code></pre>
<blockquote>
<h4 id="&#x8BF4;&#x660E;"><em>&#x8BF4;&#x660E;:</em></h4>
</blockquote>
<ul>
<li>&#x5176;&#x5B9E;&#x4F7F;&#x7528;&#x4EFB;&#x4F55;&#x4E00;&#x4E2A; shell &#x547D;&#x4EE4;&#x90FD;&#x53EF;&#x4EE5;.</li>
</ul>
</li>
<li><p><code>sshfence</code></p>
<p>&#x5176;&#x5B9E;&#x662F;&#x901A;&#x8FC7; ssh &#x8FDE;&#x63A5;&#x5230; NameNode, &#x5E76;&#x6740;&#x6B7B;&#x8FDB;&#x7A0B;.</p>
<p>&#x6240;&#x4EE5;&#x8FD9;&#x79CD;&#x60C5;&#x51B5;&#x5FC5;&#x987B;&#x6DFB;&#x52A0; ssh &#x514D;&#x5BC6;&#x767B;&#x5F55;.</p>
<pre class="language-"><code class="lang-xml"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>property</span><span class="token punctuation">&gt;</span></span>
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>name</span><span class="token punctuation">&gt;</span></span>dfs.ha.fencing.methods<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>name</span><span class="token punctuation">&gt;</span></span>
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>value</span><span class="token punctuation">&gt;</span></span>sshfence<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>value</span><span class="token punctuation">&gt;</span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>property</span><span class="token punctuation">&gt;</span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>property</span><span class="token punctuation">&gt;</span></span>
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>name</span><span class="token punctuation">&gt;</span></span>dfs.ha.fencing.ssh.private-key-files<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>name</span><span class="token punctuation">&gt;</span></span>
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>value</span><span class="token punctuation">&gt;</span></span>/home/atguigu/.ssh/id_rsa<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>value</span><span class="token punctuation">&gt;</span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>property</span><span class="token punctuation">&gt;</span></span>
</code></pre>
</li>
</ul>
<hr>
</li>
<li><p><code>dfs.journalnode.edits.dir</code> --- JN &#x5B58;&#x50A8; <code>edits</code> &#x548C; &#x5B83;&#x7684;<code>local state</code> &#x7684;&#x8DEF;&#x5F84;</p>
<p>&#x5FC5;&#x987B;&#x662F;&#x7EDD;&#x5BF9;&#x8DEF;&#x5F84;.</p>
<pre class="language-"><code class="lang-xml"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>property</span><span class="token punctuation">&gt;</span></span>
   <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>name</span><span class="token punctuation">&gt;</span></span>dfs.journalnode.edits.dir<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>name</span><span class="token punctuation">&gt;</span></span>
   <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>value</span><span class="token punctuation">&gt;</span></span>/opt/module/ha/data/jn<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>value</span><span class="token punctuation">&gt;</span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>property</span><span class="token punctuation">&gt;</span></span>
</code></pre>
<hr>
</li>
<li><p>&#x5173;&#x95ED;&#x6743;&#x9650;&#x68C0;&#x67E5;.</p>
<pre class="language-"><code class="lang-xml"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>property</span><span class="token punctuation">&gt;</span></span>
   <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>name</span><span class="token punctuation">&gt;</span></span>dfs.permissions.enable<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>name</span><span class="token punctuation">&gt;</span></span>
   <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>value</span><span class="token punctuation">&gt;</span></span>false<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>value</span><span class="token punctuation">&gt;</span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>property</span><span class="token punctuation">&gt;</span></span>
</code></pre>
<hr>
</li>
<li><p>&#x5220;&#x9664; <code>SecondaryNameNode</code> &#x7684;&#x8BBE;&#x7F6E;.</p>
</li>
</ol>
<hr>
<h4 id="&#x914D;&#x7F6E;-core-sitexml">&#x914D;&#x7F6E; <code>core-site.xml</code></h4>
<ol>
<li><p><code>fs.defaultFS</code> </p>
<pre class="language-"><code class="lang-xml"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>property</span><span class="token punctuation">&gt;</span></span>
   <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>name</span><span class="token punctuation">&gt;</span></span>fs.defaultFS<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>name</span><span class="token punctuation">&gt;</span></span>
   <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>value</span><span class="token punctuation">&gt;</span></span>hdfs://mycluster<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>value</span><span class="token punctuation">&gt;</span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>property</span><span class="token punctuation">&gt;</span></span>
</code></pre>
</li>
<li><p><code>hadoop.tmp.dir</code> --- &#x8FD0;&#x884C;&#x65F6;&#x4EA7;&#x751F;&#x7684;&#x6587;&#x4EF6;&#x7684;&#x76EE;&#x5F55;</p>
<p>&#x6700;&#x597D;&#x914D;&#x7F6E;&#x5230;&#x5F53;&#x524D;&#x7684; Hadoop &#x76EE;&#x5F55;&#x4E0B;.</p>
<pre class="language-"><code class="lang-xml"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>property</span><span class="token punctuation">&gt;</span></span>
   <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>name</span><span class="token punctuation">&gt;</span></span>hadoop.tmp.dir<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>name</span><span class="token punctuation">&gt;</span></span>
   <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>value</span><span class="token punctuation">&gt;</span></span>/opt/module/ha/data/tmp<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>value</span><span class="token punctuation">&gt;</span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>property</span><span class="token punctuation">&gt;</span></span>
</code></pre>
</li>
</ol>
<hr>
<h3 id="&#x90E8;&#x7F72;&#x7EC6;&#x8282;">&#x90E8;&#x7F72;&#x7EC6;&#x8282;</h3>
<h4 id="&#x6B65;&#x9AA4;1-&#x628A;&#x914D;&#x7F6E;&#x7684;-hadoop-&#x5206;&#x53D1;&#x5230;&#x5176;&#x4ED6;&#x8BBE;&#x5907;&#x4E0A;">&#x6B65;&#x9AA4;1: &#x628A;&#x914D;&#x7F6E;&#x7684; hadoop &#x5206;&#x53D1;&#x5230;&#x5176;&#x4ED6;&#x8BBE;&#x5907;&#x4E0A;.</h4>
<hr>
<h4 id="&#x6B65;&#x9AA4;2-&#x542F;&#x52A8;-journalnode">&#x6B65;&#x9AA4;2: &#x542F;&#x52A8; JournalNode</h4>
<p>&#x5982;&#x679C;&#x524D;&#x9762;&#x6240;&#x6709;&#x7684;&#x5FC5;&#x987B;&#x7684;&#x914D;&#x7F6E;&#x5B8C;&#x6210;, &#x5FC5;&#x987B;&#x8FD8;&#x8981;&#x9996;&#x5148;&#x542F;&#x52A8; JournalNode</p>
<p>&#x9700;&#x8981;&#x53BB;&#x6BCF;&#x53F0;&#x8BBE;&#x5907;&#x4E0A;&#x5206;&#x522B;&#x542F;&#x52A8;.</p>
<pre class="language-"><code class="lang-bash"><span class="token function">cd</span> /opt/module/ha
./sbin/hadoop-daemon.sh start journalnode
</code></pre>
<blockquote>
<h4 id="&#x6CE8;&#x610F;"><em>&#x6CE8;&#x610F;:</em></h4>
</blockquote>
<ul>
<li>&#x7531;&#x4E8E; <code>PATH</code>&#x4E2D;&#x914D;&#x7F6E;&#x7684;&#x662F;&#x539F;&#x6765;&#x7684; hadoop &#x7684;&#x8DEF;&#x5F84;. &#x6240;&#x4EE5;&#x6267;&#x884C;&#x73B0;&#x5728;&#x7684;&#x547D;&#x4EE4;&#x7684;&#x65F6;&#x5019;,&#x5FC5;&#x987B;&#x5148;&#x8FDB;&#x5165;&#x54CD;&#x5E94;&#x7684;&#x8DEF;&#x5F84;&#x4E4B;&#x540E;, &#x518D;&#x6267;&#x884C;.
<img src="http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/1539870007.png" alt=""></li>
</ul>
<h4 id="&#x6B65;&#x9AA4;3-&#x683C;&#x5F0F;&#x5316;-namenode">&#x6B65;&#x9AA4;3: &#x683C;&#x5F0F;&#x5316; NameNode</h4>
<p>&#x5728;&#x914D;&#x7F6E; NameNode &#x7684;&#x8BBE;&#x5907;&#x4E2D;&#x683C;&#x5F0F;&#x5316;&#x5176;&#x4E2D; 1 &#x53F0;.</p>
<p>&#x6CE8;&#x610F;: &#x4E00;&#x5B9A;&#x8FD8;&#x8981;&#x5148;&#x542F;&#x52A8; JournalNode</p>
<pre class="language-"><code class="lang-bash">bin/hdfs namenode -format
</code></pre>
<pre class="language-"><code class="lang-bash">sbin/hadoop-daemon.sh start namenode
</code></pre>
<p>&#x6CE8;&#x610F;:&#x6267;&#x884C;&#x8FD9;&#x4E9B;&#x6307;&#x4EE4;&#x7684;&#x662F;&#x4E0D;&#x8981;&#x5FD8;&#x8BB0; <code>bin&#x6216;&#x8005;sbin</code></p>
<h4 id="&#x6B65;&#x9AA4;4-copy-namenode-&#x7684;&#x5143;&#x6570;&#x636E;&#x76EE;&#x5F55;&#x7684;&#x5185;&#x5BB9;">&#x6B65;&#x9AA4;4: <code>copy</code> NameNode &#x7684;&#x5143;&#x6570;&#x636E;&#x76EE;&#x5F55;&#x7684;&#x5185;&#x5BB9;</h4>
<p>&#x4E00;&#x65E6;&#x683C;&#x5F0F;&#x5316;&#x5B8C;&#x6210;, &#x5E76;&#x4E14;&#x52A8;&#x4E86;&#x7B2C;&#x4E00;&#x4E2A; NameNode, &#x5C31;&#x9700;&#x8981;&#x628A;&#x8FD9;&#x4E2A; NameNode &#x5143;&#x6570;&#x636E;&#x76EE;&#x5F55;&#x7684;&#x5185;&#x5BB9;  <code>copy</code>&#x5230;&#x53E6;&#x5916;&#x4E00;&#x53F0;&#x6CA1;&#x6709;&#x683C;&#x5F0F;&#x5316;&#x7684; NameNode &#x8BBE;&#x5907;&#x4E0A;.</p>
<p>&#x5728;<code>nn2</code>&#x4E0A;&#x64CD;&#x4F5C;:</p>
<pre class="language-"><code class="lang-bash">bin/hdfs namenode -bootstrapStandby
</code></pre>
<p>&#x7136;&#x540E;&#x542F;&#x52A8;&#x8FD9;&#x4E2A; NameNode</p>
<pre class="language-"><code class="lang-bash">sbin/hadoop-daemon.sh start namenode
</code></pre>
<h4 id="&#x6B65;&#x9AA4;5-&#x5728;-web-&#x4E0A;&#x663E;&#x793A;&#x8FD9;&#x4E24;&#x4E2A;-namenode-&#x7684;&#x72B6;&#x6001;">&#x6B65;&#x9AA4;5: &#x5728; web &#x4E0A;&#x663E;&#x793A;&#x8FD9;&#x4E24;&#x4E2A; NameNode &#x7684;&#x72B6;&#x6001;.</h4>
<pre class="language-"><code>http://hadoop201:50070/
http://hadoop203:50070/
</code></pre><p><img src="http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/1539875018.png-atguiguText" alt="">
<img src="http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/1539875037.png" alt=""></p>
<p>&#x6CE8;&#x610F;: &#x76EE;&#x524D;&#x8FD8;&#x6CA1;&#x6709;&#x6D3B;&#x52A8;&#x7684; NameNode</p>
<h4 id="&#x6B65;&#x9AA4;6-&#x5728;nn1&#x4E0A;&#x542F;&#x52A8;&#x6240;&#x6709;-datanode">&#x6B65;&#x9AA4;6: &#x5728;<code>nn1</code>&#x4E0A;&#x542F;&#x52A8;&#x6240;&#x6709; DataNode</h4>
<pre class="language-"><code class="lang-bash">sbin/hadoop-daemons.sh start datanode
</code></pre>
<p><img src="http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/1539875765.png-atguiguText" alt=""></p>
<h4 id="&#x6B65;&#x9AA4;7-&#x628A;-nn1-&#x5207;&#x6362;&#x6210;-active-state">&#x6B65;&#x9AA4;7: &#x628A; <code>nn1</code> &#x5207;&#x6362;&#x6210; Active state</h4>
<pre class="language-"><code class="lang-bash">bin/hdfs haadmin -transitionToActive nn1
</code></pre>
<p><img src="http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/1539875938.png-atguiguText" alt=""></p>
<p> <img src="http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/1539876038.png-atguiguText" alt=""></p>
<hr>
<footer class="page-footer"><span class="copyright">Copyright &#xA9; &#x5C1A;&#x7845;&#x8C37;&#x5927;&#x6570;&#x636E; &amp; 2019 all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification"><br>&#x8BE5;&#x6587;&#x4EF6;&#x6700;&#x540E;&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;
2018-10-27 13:57:47
</span></footer>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="22-jia-gou.html" class="navigation navigation-prev " aria-label="Previous page: 2.2 架构">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="24-ha-hdfs-ji-qun-guan-li-ming-ling.html" class="navigation navigation-next " aria-label="Next page: 2.4 HA HDFS 集群管理命令">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"2.3 HDFS HA 部署","level":"1.2.3","depth":2,"next":{"title":"2.4 HA HDFS 集群管理命令","level":"1.2.4","depth":2,"path":"chapter1/24-ha-hdfs-ji-qun-guan-li-ming-ling.md","ref":"chapter1/24-ha-hdfs-ji-qun-guan-li-ming-ling.md","articles":[]},"previous":{"title":"2.2 架构","level":"1.2.2","depth":2,"path":"chapter1/22-jia-gou.md","ref":"chapter1/22-jia-gou.md","articles":[]},"dir":"ltr"},"config":{"plugins":["splitter","expandable-chapters-small","page-toc-button","-highlight","prism","prism-themes","tbfed-pagefooter","sitemap","change_girls","livereload"],"styles":{"website":"styles/website.css","ebook":"styles/ebook.css","pdf":"styles/pdf.css","mobi":"styles/mobi.css","epub":"styles/epub.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright &copy 尚硅谷大数据 & 2019","modify_label":"<br>该文件最后修订时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"prism":{"css":["prism-themes/themes/prism-base16-ateliersulphurpool.light.css"]},"disqus":{"shortName":"zhenchao125"},"livereload":{},"splitter":{},"change_girls":{"time":30,"urls":["http://o7cqr8cfk.bkt.clouddn.com/18-3-4/62171757.jpg-atguiguImg","http://o7cqr8cfk.bkt.clouddn.com/18-3-4/83394736.jpg-atguiguImg","http://o7cqr8cfk.bkt.clouddn.com/18-3-4/15906185.jpg-atguiguImg","http://o7cqr8cfk.bkt.clouddn.com/18-3-4/15906185.jpg-atguiguImg","http://o7cqr8cfk.bkt.clouddn.com/18-3-4/3394270.jpg-atguiguImg","http://o7cqr8cfk.bkt.clouddn.com/18-3-4/65028582.jpg-atguiguImg","http://o7cqr8cfk.bkt.clouddn.com/18-3-4/20359261.jpg-atguiguImg","http://o7cqr8cfk.bkt.clouddn.com/18-3-4/37472401.jpg-atguiguImg","http://o7cqr8cfk.bkt.clouddn.com/18-3-4/3355397.jpg-atguiguImg","http://o7cqr8cfk.bkt.clouddn.com/18-3-4/11075549.jpg-atguiguImg"]},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"sitemap":{"hostname":"https://www.gitbook.com/@zhenchao125"},"page-toc-button":{"maxTocDepth":6,"minTocSize":5},"prism-themes":{},"expandable-chapters-small":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":" 李振超","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"大数据 HA 课堂笔记","language":"zh-hans","links":{"sidebar":{"联系我们":"http://www.atguigu.com/"}},"gitbook":"*","description":"课堂笔记,学生提前预习"},"file":{"path":"chapter1/23-bu-shu.md","mtime":"2018-10-27T05:57:47.421Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-11T09:39:05.323Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-page-toc-button/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-change_girls/girls.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

